<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        img{
            position: absolute;
            left: 50%;
            transform: translate(-50%,-50%);
            top: 40%;
        }
        p{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            font-size: 36px;
        }
    </style>
</head>
<body>
<div id="id" style="display: none">{$action}</div>
{if $code==200}
<img src="__ADMIN__/images/chengg.png"  />
{else}
<img src="__ADMIN__/images/error.png"  />
{/if}
</body>
<script type="text/javascript" src="__ADMIN__/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__ADMIN__/lib/layer/2.4/layer.js"></script>
<script>
    setTimeout(function () {
        var $href = $("#id").text();
        if($href!==''||$href!==' '){
            window.location.href = $href;
        }else{
            history.back(-1);
        }
    },1500);
</script>
</html>